package com.helper.easyHelper.sqlmap;

import com.helper.easyHelper.common.entity.Table;
import com.helper.easyHelper.utils.FreeMakerUtil;
import com.helper.easyHelper.utils.MySQLUtils;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/1/29
 */
public class SqlMapHelper {
    public static void generateSqlMap(){
        Table table = MySQLUtils.getTableInfo("t01_device_type");
        FreeMakerUtil.generateFile(table,"src/main/resources/template","sqlmap.java.ftl",table.getMapperName());
    }

    public static void main(String[] args) {
        generateSqlMap();
    }
}
